package com.yoyo.itravel.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 航空公司实体类
 * liuchaojie
 */
public class Airline implements Serializable {
    private String airlineId;//航空公司id
    private String airlineName;//公司名称
    private String icon;//公司图标
    private String phone;//联系电话
    private String address;//公司地址
    private Double ontimeRate;//到达准点率
    private String alipayUID;//公司支付包账号
    private Date registerTime;//注册时间
    private String description;//描述

    private List<Flight> flights;//一个航空公司对应多条航线

    private List<PlanType> planTypes;//一个航空公司对应多种机型

    public List<PlanType> getPlanTypes() {
        return planTypes;
    }

    public void setPlanTypes(List<PlanType> planTypes) {
        this.planTypes = planTypes;
    }

    public List<Flight> getFlights() {
        return flights;
    }

    public void setFlights(List<Flight> flights) {
        this.flights = flights;
    }

    @Override
    public String toString() {
        return "Airline{" +
                "airlineId='" + airlineId + '\'' +
                ", airlineName='" + airlineName + '\'' +
                ", icon='" + icon + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", ontimeRate=" + ontimeRate +
                ", alipayUID='" + alipayUID + '\'' +
                ", registerTime=" + registerTime +
                ", description='" + description + '\'' +
                ", flights=" + flights +
                ", planTypes=" + planTypes +
                '}';
    }

    public String getAirlineId() {
        return airlineId;
    }

    public void setAirlineId(String airlineId) {
        this.airlineId = airlineId;
    }

    public String getAirlineName() {
        return airlineName;
    }

    public void setAirlineName(String airlineName) {
        this.airlineName = airlineName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getOntimeRate() {
        return ontimeRate;
    }

    public void setOntimeRate(Double ontimeRate) {
        this.ontimeRate = ontimeRate;
    }

    public String getAlipayUID() {
        return alipayUID;
    }

    public void setAlipayUID(String alipayUID) {
        this.alipayUID = alipayUID;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Airline(String airlineId, String airlineName, String icon, String phone, String address, Double ontimeRate, String alipayUID, Date registerTime, String description, List<Flight> flights, List<PlanType> planTypes) {
        this.airlineId = airlineId;
        this.airlineName = airlineName;
        this.icon = icon;
        this.phone = phone;
        this.address = address;
        this.ontimeRate = ontimeRate;
        this.alipayUID = alipayUID;
        this.registerTime = registerTime;
        this.description = description;
        this.flights = flights;
        this.planTypes = planTypes;
    }

    public Airline() {
    }
}
